import SuccessComponent from './messageBox'
import success from './success/main'

import ErrorComponent from './messageBox'
import error from './error/main'

export default Vue => {
    Vue.component(SuccessComponent.name,SuccessComponent);
    Vue.component(ErrorComponent.name,ErrorComponent);
    Vue.prototype.$messageBox = {
        success,
        error
    }
}